import http from './index';

// 获取数据库配置
export const getDBConfig = () => http({
  url: '/getDBConfig',
  method: 'GET',
});

// 保存数据库配置
export const saveDBConfig = (param) => http({
  url: '/saveDBConfig',
  method: 'POST',
  data: param,
});

//获取表数据
export const getTableData = (param) => http({
  url: '/getTableData',
  method: 'GET',
});



//获取弹框数据
export const getDialogData = (param) => http({
  url: '/getDialogData',
  method: 'POST',
  data: {
    "table": param.Table,
  },
});


//获取表配置
export const saveTableConfig = (param) => http({
  url: '/saveTableConfig',
  method: 'POST',
  data: param
});


//获取表配置
export const upDialogData = (param) => http({
  url: '/upDialogData',
  method: 'POST',
  data: param
});



//获取表配置
export const saveConfuseConfig  = (param) => http({
  url: '/saveConfuseConfig',
  method: 'POST',
  data: param
});


//开始同步
export const sync = () => http({
  url: '/sync',
  method: 'POST',
  timeout: 0,
});